package flyweight;

/**
 * @author wcj
 * @Date 2021/7/11 23:35
 * @Version 1.0
 */
public class ConcreteWebSite extends WebSite {

    private String name;

    public ConcreteWebSite(String name) {
        this.name = name;
    }

    @Override
    public void use(User user) {
        System.out.println("网站展示：" + this.name + ",用户：" + user.getName());
    }

}
